﻿@{
    Layout = null;
}
@model List<XT.Exam.MODEL. Student>
<!DOCTYPE html>
<title>学生列表</title>
<link href="~/Content/static/h-ui/css/H-ui.min.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="~/Content/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="~/Content/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="~/Content/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="~/Content/static/h-ui.admin/css/style.css" />

<html>
<body>
    <form action="/" method="post" class="form"></form>
    <button class="btn btn-secondary-outline radius" type="button" style="margin:15px  15px;" onclick="AddStudent()"><i class="Hui-iconfont">&#xe600;</i>添加学生</button>
       
   
    <button class="btn btn-secondary-outline radius" type="button" style="margin:15px  0px;" onclick="javascript: location.href = '/SysUserInfo/leadingin/'"><i class="Hui-iconfont">&#xe600;</i>导入学生信息</button>
    <div>
        <table class="table table-hover table-border  radius table-bordered ">
            <thead>
                <tr>
                    <th colspan="11" scope="col">学生列表</th>
                </tr>
                <tr class="text-c active" >
                    <th>编号</th>
                    <th>学号</th>
                    <th>密码</th>
                    <th>真实姓名</th>
                    <th>邮箱</th>
                    <th>手机号</th>
                    <th>身份证号</th>
                    <th>性别</th>
                    <th>讲师</th>
                    <th>班级</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model)
                {
                    <tr class="text-c">
                        <td>@item.ID</td>
                        <td>@item.Student_Numb</td>
                        <td>@item.Student_Pass</td>
                        <td>@item.Student_Name</td>
                        <td>@item.Student_Email</td>
                        <td>@item.Student_Tel</td>
                        <td>@item.Student_Card</td>
                        <td>@item.Student_Sex</td>
                        <td>@item.Lecturer_Name</td>
                        <td>@item.Class_Name</td>
                        <td>
                            <a title="删除" href="#" class="ml-5" style="text-decoration: none"><i class="Hui-iconfont">&#xe6e2;</i></a>
                        </td>
                    </tr>
                }         
            </tbody>
        </table>
    </div>
</body>

</html>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="~/Content/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="~/Content/lib/layer/2.4/layer.js"></script>

<script src="~/Content/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="~/Content/static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="~/Content/lib/jquery.contextmenu/jquery.contextmenu.r2.js"></script>
<script>
    function AddStudent() {
        var htmlstr = "<div><form action='/SysUserInfo/AddStudent' method='post'> ";
        htmlstr += "<table class='table table-container radius'>";
        htmlstr += "<tr><td class='text-r'>学号：</td><td><input type='text' name='Student_Numb' class='input-text radius'/></td></tr>";
        htmlstr += "<tr><td class='text-r'>姓名：</td><td><input type='text' name='Student_Name' class='input-text radius'/></td></tr>";
        htmlstr += "<tr><td class='text-r'>性别：</td><td> <input type='radio' name='Student_Sex' checked value='男' class='check-box'/>男&nbsp;&nbsp;<input type='radio' name='Student_Sex' value='女' class='check-box'/>女</td></tr>";
        htmlstr += "<tr><td class='text-r'>邮箱：</td><td><input type='email' name='Student_Email' class='input-text radius'/></td></tr>";
        htmlstr += "<tr><td class='text-r'>电话：</td><td><input type='text' name='Student_Tel' class='input-text radius'/></td></tr>";
        htmlstr += "<tr><td class='text-r'>身份证号：</td><td><input type='text' name='Student_Card' class='input-text radius'/></td></tr>";
        htmlstr += "<tr><td class='text-c' colspan='2'><input type='submit' class='btn btn-primary radius' value='添加'/><input type='reset' value='重置' class='btn btn-warning-outline radius'/></td></tr>";
        htmlstr += "</form></div>"
            layer.open({
                type: 1,
                area: ['500px', '400px'],
                fix: false, //不固定
                maxmin: true,
                shade: 0.4,
                title: '添加学生',
                content: htmlstr
            });
}
</script>